package com.duowei.diandan.bean;

import com.duowei.diandan.constant.PayType;

public class Payment {
    public String title;

    /** 付款方式 */
    public PayType payType;
    /** 总金额金额 */
    public float totalMoney = -1;
    /** 付款金额 */
    public float payMoney;
    /** 券张数 */
    public int ticketNum;

    /* 券id */
    public String id;

    /** 积分值 */
    public float jfValue;

    public Payment(String title, PayType payType, float payMoney) {
        this.title = title;
        this.payType = payType;
        this.payMoney = payMoney;
    }

    /**
     * 提交积分付款方式
     *
     * @param title
     * @param payType
     * @param payMoney
     * @param jfValue
     */
    public Payment(String title, PayType payType, float payMoney, float jfValue) {
        this.title = title;
        this.payType = payType;
        this.totalMoney = -1;
        this.payMoney = payMoney;
        this.jfValue = jfValue;
    }

    public Payment(String title, PayType payType, float totalMoney, float payMoney, int ticketNum, String id) {
        this.title = title;
        this.payType = payType;
        this.totalMoney = totalMoney;
        this.payMoney = payMoney;
        this.ticketNum = ticketNum;
        this.id = id;
    }
}
